<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    div{
      /*div默认的宽为上级元素的宽,默认高度为内容高度*/
      border: 1px solid red;width: 100px;height: 100px;
    }
    span{
      border: 1px solid blue;
      /*span默认为行内元素不能修改宽高*/
      width: 100px;height: 100px;
      display: inline-block;/*必须改成其它显示方式才可以修改*/
    }
    img{
      /*图片为行内块元素 可以修改宽高 并且共占一行*/
      width: 100px;
      height: 100px;
      /*不显示*/
      /*display: none;*/
    }
    a{
      background-color: #0aa1ed;
      width: 100px;
      height: 30px;
      display: block;
      text-align: center;
      line-height: 30px;
      text-decoration: none;
      color: white;
      border-radius: 10px;/*设置圆角*/
    }
  </style>
</head>
<body>
<a href="">查看详情</a>
<img src="../b.jpg">
<img src="../b.jpg">
<img src="../b.jpg">
<div>div1</div><div>div2</div><div>div3</div>
<span>span1</span><span>span2</span><span>span3</span>
</body>
</html>